/**
 * 授权view.
 * @author 高元称
 * @version 1.0.0, 2015-07-22
 */
Ext.define('MyApp.view.GrantAuthorView', {
	extend : 'Ext.window.Window',
	alias : 'widget.grantauthorview',
	id : 'grantauthorview',
	title : '授权',
	resizable : false,
	constrainHeader:true,
	closeAction : 'hide',
	width : 283,
	height : 500,
	layout : 'fit',
	modal : true,
	initComponent : function() {
		this.items=[{
			xtype:'treepanel',
			name:'tree',
	        border : false, 
	        enableDD : false, 
	        split:false, 
	        width : 270, 
	        minSize : 130, 
	        maxSize : 270, 
	        rootVisible: false, 
	        containerScroll :false, 
	        collapsible : false, 
	        autoScroll : false
		}]; 
		this.fbar = [{
    		xtype: 'button',
        	margin: '5',
        	text: '保存',
        	name: 'btn-save',
        	iconCls: 'btn-save'
    	},{
    		xtype: 'button',
        	margin: '5',
        	text: '取消',
        	name: 'btn-cancel',
        	iconCls: 'btn-cancel',
        	scope: this,
        	handler: this.close
		}];
		
		this.callParent(arguments);
	}
});